/*
 * Created on 2005-7-20
 *
 */
package com.yl.cap.analyst.test;

import java.util.List;

import org.springframework.context.ApplicationContext;

import com.yl.cap.analyst.report.service.ReportService;

/**
 * @author ZhangQi
 *  
 */
public class ServiceTester
{

    public static void main(String[] args)
    {
        System.setProperty("org.xml.sax.driver",
                "org.apache.xerces.parsers.SAXParser");
        ApplicationContext ctx = TestHelper.getContext();
        ReportService rs = (ReportService) ctx.getBean("reportService");
        try
        {
            List ret = rs.findAllReportType();
            for (int i = 0; i < ret.size(); i++)
            {
                System.out.println(ret.get(i));    
            }
        }
        catch (Exception e)
        {
            e.printStackTrace();
        }
    }
}
